// import request from '@/utils/request'

// export const addArticleAPI = fd => {
//   return request.poth('/my/article/add', fd)
// }
import request from '@/utils/request'
// 添加文章
export const addArticleAPI = fd => {
  // return request.post('/my/article/add', fd)
  return request({
    method: 'POST',
    url: '/my/article/add',
    data: fd
  })
}
export const getArticleAPI = data => {
  return request.get('/my/article/list', { params: data })
}
export const delArticleAPI = id => {
  return request.delete('/my/article/info', { params: { id } })
}

// export const deleteCategoryAPI = id => {
//   return request.delete('/my/cate/add', { params: { id } })
// }
